package com.t249.bdqn.renting.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.io.Serializable;

@Data
@Component
@TableName(value = "ret_img")
public class RetImg implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableField("id")
    private Integer id;

    //图片路径
    @TableField("img_picture")
    private String imgPicture;

    //租房详情id
    @TableField("ret_rental_Id")
    private Integer retRentalId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImgPicture() {
        return imgPicture;
    }

    public void setImgPicture(String imgPicture) {
        this.imgPicture = imgPicture;
    }

    public Integer getRetRentalId() {
        return retRentalId;
    }

    public void setRetRentalId(Integer retRentalId) {
        this.retRentalId = retRentalId;
    }
}
